Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(language-service): auto insert const props = with props completion #4942

Merged
merged 10 commits into from
Oct 30, 2024

Conversation

KazariEX
Copy link
Collaborator

from:

<script lang="ts" setup>
defineProps<{
	foo: string;
}>();
pro|
</script>

to:

<script lang="ts" setup>
const props = defineProps<{
	foo: string;
}>();
props
</script>

It also applies to defineEmits and defineSlots.

Copy link

pkg-pr-new bot commented Oct 24, 2024

Open in Stackblitz

vue-component-type-helpers

pnpm add https://pkg.pr.new/vuejs/language-tools/vue-component-type-helpers@4942

@vue/language-plugin-pug

pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/language-plugin-pug@4942

@vue/language-core

pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/language-core@4942

@vue/language-server

pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/language-server@4942

@vue/language-service

pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/language-service@4942

vue-tsc

pnpm add https://pkg.pr.new/vuejs/language-tools/vue-tsc@4942

@vue/typescript-plugin

pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/typescript-plugin@4942

vue-component-meta

pnpm add https://pkg.pr.new/vuejs/language-tools/vue-component-meta@4942

commit: 9ed0acf

@johnsoncodehk johnsoncodehk merged commit 82d27ce into vuejs:master Oct 30, 2024
4 checks passed
@KazariEX KazariEX deleted the feat/auto-insert-defines branch October 30, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants